import request from '@/utils/request'

// 查询中期报告列表
export function listMidmeterial(query) {
  return request({
    url: '/TeamMidmeterial/midmeterial/list',
    method: 'get',
    params: query
  })
}

// 查询中期报告详细
export function getMidmeterial(id) {
  return request({
    url: '/TeamMidmeterial/midmeterial/' + id,
    method: 'get'
  })
}

// 新增中期报告
export function addMidmeterial(data) {
  return request({
    url: '/TeamMidmeterial/midmeterial',
    method: 'post',
    data: data
  })
}

// 修改中期报告
export function updateMidmeterial(data) {
  return request({
    url: '/TeamMidmeterial/midmeterial',
    method: 'put',
    data: data
  })
}

// 删除中期报告
export function delMidmeterial(id) {
  return request({
    url: '/TeamMidmeterial/midmeterial/' + id,
    method: 'delete'
  })
}

// 导出中期报告
export function exportMidmeterial(query) {
  return request({
    url: '/TeamMidmeterial/midmeterial/export',
    method: 'get',
    params: query
  })
}
